<!DOCTYPE html>
<html lang="zh-CN">
@include('base.head')
<body>
@extends('index.base')
<div class="col-md-12" style="height: 70px"></div>
@if(session('__Ajax_RedirectFunc_status') == true)
    <div>
        <div class="alert alert-success alert-dismissible fade in" role="alert">
            <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                <span aria-hidden="true">&times;</span>
            </button>
            <h3>成功</h3>
            <p><?php echo session('__Ajax_RedirectFunc_message');?></p>
            <p><?php echo session('__Ajax_RedirectFunc_plugin');?></p>
        </div>
    </div>
@endif
@if(session('__Ajax_RedirectFunc_status') === false)
    <div >
        <div class="alert alert-danger alert-dismissible fade in" role="alert">
            <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                <span aria-hidden="true">&times;</span>
            </button>
            <h3>失败</h3>
            <p><?php echo session('__Ajax_RedirectFunc_message');?></p>
            <p><?php echo session('__Ajax_RedirectFunc_plugin');?></p>
        </div>
    </div>
@endif
<div class="con-body">
    <div class="banner">
        <div class="container">
            <div class="row">
                <div class="col-md-12" >
                    <div class="panel panel-default">
                        <div class="panel-body" >
                            <h3>当前店铺：{{$goodsShop->business_shop}}</h3>
                            <hr>
                            <h4>店主：{{$goodsShop->business_name}}</h4>
                            <br>
                            <h4>联系方式：{{$goodsShop->business_phone}}</h4>
                            <br>
                            <h4>成立时间：{{$goodsShop->business_time}}</h4>
                            <br>
                            <h4>店铺简介：{{$goodsShop->business_info}}</h4>
                            <br>
                        </div>
                    </div>
                </div>

                <div class="col-md-12">
                    <div class="panel panel-default">
                        <div class="panel-body">
                            <div class="col-md-12" >
                                <h4>商品：</h4>
                                <hr>

                                <div class="row">
                                    @foreach($goodsData as $data)
                                        <div class="col-sm-6 col-md-3">
                                            <div class="thumbnail">
                                                <img src="/images/{{$data->goods_image}}" style="width: 100%;height: 240px">
                                                <div class="caption" style="padding-bottom: 1px">
                                                    <h4 style="color: red;margin-top: 0px">￥{{$data->goods_price}}<small class="pull-right" style="margin-top: 3px">{{$data->goods_buy_num}}人购买</small></h4>
                                                    <p><a href="/goodsInfo/{{$data->goods_id}}" style="text-decoration: none">{{$data->goods_name}}</a></p>
                                                    {{--<p>{{$data->business_shop}} <a href="/goodsShop/{{$data->business_id}}" class="pull-right">进入店铺</a></p>
                                                    <a href="#" class="btn btn-primary btn-sm" role="button">Button</a> <a href="#" class="btn btn-default btn-sm" role="button">Button</a>--}}
                                                </div>
                                            </div>
                                        </div>
                                    @endforeach
                                </div>

                                <ul class="list text-center">
                                    {{$goodsData->links()}}
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>